using Yunchang;

namespace AutoChess
{ 
    class BaseLogicSys<T> where T:new()
    {
       #region Singleton
       
       private static T _ins;

       public static T Instance
       {
           get
           {
               if (_ins == null)
               {
                   return new T();
               }

               return _ins;
           }
       }
       
       #endregion
       
        protected virtual bool OnInit()
        {
            return true;
        }

        protected virtual void OnUpdate()
        {
            
        }

        protected virtual void OnLateUpdate()
        {
            
        }
    }
}